package com.surprise.db.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.surprise.base.bo.IHasIdInterface;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * Shop.java
 * @author nick
 * @since 2015年5月2日
 */
@Data
@Entity(name="user")
@Accessors(chain = true)
public class CUser implements IHasIdInterface {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    protected Long id;
    @JsonIgnore
    protected Date addtime;
    @JsonIgnore
    protected Date updatetime;
	private String username = "";
	private String password = "";
	private String portrait = "";
	private String phone = "";
	private int role = 1;
	private int type = 1;
	private long integral = 0;
	private String email;
	private String address;
	private int gender = 0;
	private String token;
	@Transient
    private String online; // 是否在线("0": 离线, "1": 在线)
	@Transient
	private String friendFlg; // 是否好友("0": 不是好友 , "1": 是好友)
}
